// 动态路由
import LayOut from "@/layOut"

const dynamicRoutes = [
    {
        path: "/systemManage",
        component: LayOut,
        hidden: false,
        active: false,
        meta: { title: "系统管理", icon: "icon-system" },
        children: [
            {
                path: "userManage",
                name: "UserManage",
                meta: { title: "用户管理", icon: "", fatherPath: "/systemManage", noCached: false },
                component: () => import("@/views/systemManage/userManage.vue"),
            }, {
                path: "roleList",
                name: "RoleList",
                meta: { title: "角色列表", icon: "", fatherPath: "/systemManage", noCached: false },
                component: () => import("@/views/systemManage/roleList.vue"),
            }, {
                path: "messageCenter",
                name: "MessageCenter",
                meta: { title: "消息中心", icon: "", fatherPath: "/systemManage", noCached: false },
                component: () => import("@/views/systemManage/messageCenter.vue"),
            }, {
                path: "notify",
                name: "Notify",
                fatherPath: "/systemManage",
                meta: { title: "呼叫通知", icon: "", fatherPath: "/systemManage", noCached: false },
                component: () => import("@/views/systemManage/notify.vue"),
            }, {
                path: "addBanner",
                name: "AddBanner",
                fatherPath: "/systemManage",
                meta: { title: "添加广告位", icon: "", fatherPath: "/systemManage", noCached: false },
                component: () => import("@/views/systemManage/addBanner.vue"),
            }, {
                path: "setClassify",
                name: "SetClassify",
                fatherPath: "/systemManage",
                meta: { title: "分类设置", icon: "", fatherPath: "/systemManage", noCached: false },
                component: () => import("@/views/systemManage/setClassify.vue"),
            }, {
                path: "setBasics",
                name: "SetBasics",
                fatherPath: "/systemManage",
                meta: { title: "基础设置", icon: "", fatherPath: "/systemManage", noCached: false },
                component: () => import("@/views/systemManage/setBasics.vue"),
            },
        ]
    }, {
        path: "/goodsManage",
        component: LayOut,
        hidden: false,
        active: false,
        meta: { title: "商品", icon: "icon-goods" },
        children: [
            {
                path: "goodsList",
                name: "GoodsList",
                meta: { title: "商品列表", icon: "", fatherPath: "/goodsManage", noCached: false },
                component: () => import("@/views/goodsManage/goodsList.vue"),
            }, {
                path: "purchaseManage",
                name: "PurchaseManage",
                meta: { title: "采购管理", icon: "", fatherPath: "/goodsManage", noCached: false },
                component: () => import("@/views/goodsManage/purchaseManage.vue"),
            },
        ]
    }, {
        path: "/orderManage",
        component: LayOut,
        hidden: false,
        active: false,
        meta: { title: "订单", icon: "icon-order" },
        children: [
            {
                path: "orderList",
                name: "OrderList",
                meta: { title: "订单列表", icon: "", fatherPath: "/orderManage", noCached: false },
                component: () => import("@/views/orderManage/orderList.vue"),
            },
        ]
    }, {
        path: "/reportManage",
        component: LayOut,
        hidden: false,
        active: false,
        meta: { title: "报表", icon: "icon-report" },
        children: [
            {
                path: "salesVolume",
                name: "SalesVolume",
                meta: { title: "销售额报表", icon: "", fatherPath: "/reportManage", noCached: false },
                component: () => import("@/views/reportManage/salesVolume.vue"),
            }, {
                path: "costChange",
                name: "CostChange",
                meta: { title: "成本变化一览", icon: "", fatherPath: "/reportManage", noCached: false },
                component: () => import("@/views/reportManage/costChange.vue"),
            },
        ]
    }, {
        path: "/financeManage",
        component: LayOut,
        hidden: false,
        active: false,
        meta: { title: "财务", icon: "icon-finance" },
        children: [
            {
                path: "flowMonitoring",
                name: "FlowMonitoring",
                meta: { title: "流水监控", icon: "", fatherPath: "/financeManage", noCached: false },
                component: () => import("@/views/financeManage/flowMonitoring.vue"),
            }, {
                path: "refundExamine",
                name: "RefundExamine",
                meta: { title: "退款审核", icon: "", fatherPath: "/financeManage", noCached: false },
                component: () => import("@/views/financeManage/refundExamine.vue"),
            },
        ]
    }
]

export default dynamicRoutes
